package com.asset.dispoal.role.domain.db.mapper;

import com.asset.dispoal.role.domain.db.entity.GbRoleDo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import tech.mhuang.pacebox.springboot.core.mapper.BaseMapper;

import java.util.List;

/**
 * 角色表JDBC接口
 *
 * @author: mhuang
 * @date: 2022-03-01 15:30:18
 */
@Mapper
public interface GbRoleMapper extends BaseMapper<GbRoleDo, String> {

    void insertAuthUser(@Param("roleId") String id, @Param("userIdList") List<String> userIds);

    void insertAuthDepart(@Param("roleId") String id, @Param("departIdList") List<String> departIds);

    void deleteByCommon(String id);
}